/**
 * 
 */
package com.chocolatefordogs.writersnb.app.notes;

import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.MutableTreeNode;

import com.chocolatefordogs.writersnb.app.treeutils.TreeNodeBuilder;
import com.chocolatefordogs.writersnb.notes.Note;

/**
 * @author Matthew
 *
 */
public final class NoteNodeBuilder implements TreeNodeBuilder<Note> {

	private NoteNodeBuilder() { }
	
	@Override
	public MutableTreeNode buildNode(final Note item) {
		MutableTreeNode res = new DefaultMutableTreeNode(item);
		return res;
	}
	
	public static TreeNodeBuilder<Note> getInstance() {
		return instance;
	}

	private static final NoteNodeBuilder instance = new NoteNodeBuilder();
}
